package com.swn.main;

import org.apache.log4j.Logger;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.swn.common.util.SpringContext;

public class UserCenterApp {
	private static Logger logger = Logger.getLogger(UserCenterApp.class);
	public static void main(String[] args) {

		ClassPathXmlApplicationContext context = null;
		try {
			context = SpringContext.getContext();
			context.start();
			/*while(true){
				Thread.sleep(60*60*24);
			}*/
			
			
		} catch (Exception e) {
			e.printStackTrace();
		}

		synchronized (UserCenterApp.class) {
			System.out.println("==============================");
			while (true) {
				try {
					UserCenterApp.class.wait();
				} catch (InterruptedException e) {
					logger.error("== synchronized error:", e);
				}
			}
		}
	}
}
